import request from '@/utils/request'

export function getProprietorList(query) {
  return request({
    url: '/proprietor/getProprietorList',
    method: 'get',
    params: query
  })
}

export function addProprietor(data) {
  return request({
    url: '/proprietor/addProprietor',
    method: 'post',
    data
  })
}

export function updateProprietor(data) {
  return request({
    url: '/proprietor/updateProprietor',
    method: 'put',
    data
  })
}

export function deleteProprietor(id) {
  return request({
    url: '/proprietor/delete/' + id,
    method: 'delete'
  })
}

export function getProprietorItem() {
  return request({
    url: '/proprietor/getProprietorItem',
    method: 'post'
  })
}
